package fault_file

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Fault_file_structRouter struct {
}

// InitFault_file_structRouter 初始化 Fault_file_struct 路由信息
func (s *Fault_file_structRouter) InitFault_file_structRouter(Router *gin.RouterGroup) {
	fault_file_structRouter := Router.Group("fault_file_struct").Use(middleware.OperationRecord())
	fault_file_structRouterWithoutRecord := Router.Group("fault_file_struct")
	var fault_file_structApi = v1.ApiGroupApp.Fault_fileApiGroup.Fault_file_structApi
	{
		fault_file_structRouter.POST("createFault_file_struct", fault_file_structApi.CreateFault_file_struct)   // 新建Fault_file_struct
		fault_file_structRouter.DELETE("deleteFault_file_struct", fault_file_structApi.DeleteFault_file_struct) // 删除Fault_file_struct
		fault_file_structRouter.DELETE("deleteFault_file_structByIds", fault_file_structApi.DeleteFault_file_structByIds) // 批量删除Fault_file_struct
		fault_file_structRouter.PUT("updateFault_file_struct", fault_file_structApi.UpdateFault_file_struct)    // 更新Fault_file_struct
	}
	{
		fault_file_structRouterWithoutRecord.GET("findFault_file_struct", fault_file_structApi.FindFault_file_struct)        // 根据ID获取Fault_file_struct
		fault_file_structRouterWithoutRecord.GET("getFault_file_structList", fault_file_structApi.GetFault_file_structList)  // 获取Fault_file_struct列表
	}
}
